package com.mty.feign;

import com.mty.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ：Teacher马（2508531326@qq.com）
 * @date ：Created in 2022/11/20 19:45
 * @description：
 * @modified By：
 * @version:
 */
@FeignClient(value = "shop-product")
public interface ProductFeign {
    @GetMapping("/product/getById/{pid}")
    public Product getById(@PathVariable Long pid);
}
